const request = require('../../utils/request')
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    resault:[
      {
        name:"lbw",
        index:1,
        url:"../../imgs/help.png"
      },
      {
        name:"lbw",
        index:2,
        url:"../../imgs/help.png"
      },
      {
        name:"lbw",
        index:3,
        url:"../../imgs/help.png"
      },
      {
        name:"lbw",
        index:5,
        url:"../../imgs/help.png"
      },
      {
        name:"lbw",
        index:6,
        url:"../../imgs/help.png"
      },
      {
        name:"lbw",
        index:7,
        url:"../../imgs/help.png"
      },
      {
        name:"lbw",
        index:8,
        url:"../../imgs/help.png"
      },
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {

  },
     // 组件声明周期
     lifetimes: {
      attached:async function() {
        // 在组件实例进入页面节点树时执行
        let res = await request.getUserTopList()
        // console.log(res.data.data.value.records)
        this.setData({
          resault:res.data.data.value.records
        })
      }
    }
})
